<?php 
    namespace Home\Model;
    use Think\Model;
    class MessageModel extends Model{
        //自动完成
        protected $_auto = array ( 
            array('maddtime','time',1,'function'),
             
        );
       
        //自动验证
        protected $_validate = array(
          array('mcontent','require','内容不能为空',0,'regex',1)
        );
    }
